package com.coolingme.kpi;


import java.util.Random;

/**
 * 员工基类
 *
 * @author wangyue
 * @date 2020/10/10 9:05
 */
public abstract class AbstractEmployee {

    public String name;

    public Integer kpi;

    public AbstractEmployee(String name) {
        this.name = name;
        this.kpi = new Random().nextInt(10);
    }

    /**
     * 核心方法，接受访问者的访问
     *
     * @param visitor 访问者
     */
    public abstract void accept(IVisitor visitor);


}
